<%@ page import="union.Gestao" %>

<h3>Dados de gestao</h3>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'descricao', 'error')} ">
	<label for="descricao">
		<g:message code="gestao.descricao.label" default="Descricao" />
		
	</label>
	<g:textField name="descricao" value="${gestaoInstance?.descricao}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioCiclo', 'error')} required">
	<label for="dataInicioCiclo">
		<g:message code="gestao.dataInicioCiclo.label" default="Data Inicio Ciclo" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioCiclo" precision="day"  value="${gestaoInstance?.dataInicioCiclo}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimCiclo', 'error')} required">
	<label for="dataFimCiclo">
		<g:message code="gestao.dataFimCiclo.label" default="Data Fim Ciclo" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimCiclo" precision="day"  value="${gestaoInstance?.dataFimCiclo}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioComp', 'error')} required">
	<label for="dataInicioComp">
		<g:message code="gestao.dataInicioComp.label" default="Data Inicio Comp" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioComp" precision="day"  value="${gestaoInstance?.dataInicioComp}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimComp', 'error')} required">
	<label for="dataFimComp">
		<g:message code="gestao.dataFimComp.label" default="Data Fim Comp" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimComp" precision="day"  value="${gestaoInstance?.dataFimComp}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioAcomp', 'error')} required">
	<label for="dataInicioAcomp">
		<g:message code="gestao.dataInicioAcomp.label" default="Data Inicio Acomp" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioAcomp" precision="day"  value="${gestaoInstance?.dataInicioAcomp}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimAcomp', 'error')} required">
	<label for="dataFimAcomp">
		<g:message code="gestao.dataFimAcomp.label" default="Data Fim Acomp" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimAcomp" precision="day"  value="${gestaoInstance?.dataFimAcomp}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioAvaliacao', 'error')} required">
	<label for="dataInicioAvaliacao">
		<g:message code="gestao.dataInicioAvaliacao.label" default="Data Inicio Avaliacao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioAvaliacao" precision="day"  value="${gestaoInstance?.dataInicioAvaliacao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimAvaliacao', 'error')} required">
	<label for="dataFimAvaliacao">
		<g:message code="gestao.dataFimAvaliacao.label" default="Data Fim Avaliacao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimAvaliacao" precision="day"  value="${gestaoInstance?.dataFimAvaliacao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioIndicadorR', 'error')} required">
	<label for="dataInicioIndicadorR">
		<g:message code="gestao.dataInicioIndicadorR.label" default="Data Inicio Indicador R" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioIndicadorR" precision="day"  value="${gestaoInstance?.dataInicioIndicadorR}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimIndicadorR', 'error')} required">
	<label for="dataFimIndicadorR">
		<g:message code="gestao.dataFimIndicadorR.label" default="Data Fim Indicador R" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimIndicadorR" precision="day"  value="${gestaoInstance?.dataFimIndicadorR}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioAcordo', 'error')} required">
	<label for="dataInicioAcordo">
		<g:message code="gestao.dataInicioAcordo.label" default="Data Inicio Acordo" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioAcordo" precision="day"  value="${gestaoInstance?.dataInicioAcordo}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimAcordo', 'error')} required">
	<label for="dataFimAcordo">
		<g:message code="gestao.dataFimAcordo.label" default="Data Fim Acordo" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimAcordo" precision="day"  value="${gestaoInstance?.dataFimAcordo}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioApuracao', 'error')} required">
	<label for="dataInicioApuracao">
		<g:message code="gestao.dataInicioApuracao.label" default="Data Inicio Apuracao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioApuracao" precision="day"  value="${gestaoInstance?.dataInicioApuracao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimApuracao', 'error')} required">
	<label for="dataFimApuracao">
		<g:message code="gestao.dataFimApuracao.label" default="Data Fim Apuracao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimApuracao" precision="day"  value="${gestaoInstance?.dataFimApuracao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataInicioFeedback', 'error')} required">
	<label for="dataInicioFeedback">
		<g:message code="gestao.dataInicioFeedback.label" default="Data Inicio Feedback" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicioFeedback" precision="day"  value="${gestaoInstance?.dataInicioFeedback}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'dataFimFeedback', 'error')} required">
	<label for="dataFimFeedback">
		<g:message code="gestao.dataFimFeedback.label" default="Data Fim Feedback" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFimFeedback" precision="day"  value="${gestaoInstance?.dataFimFeedback}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: gestaoInstance, field: 'gruposGestao', 'error')} ">
	<label for="gruposGestao">
		<g:message code="gestao.gruposGestao.label" default="Grupos Gestao" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${gestaoInstance?.gruposGestao?}" var="g">
    <li><g:link controller="gruposGestao" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="gruposGestao" action="create" params="['gestao.id': gestaoInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'gruposGestao.label', default: 'GruposGestao')])}</g:link>
</li>
</ul>

</div>

